package com.rivulet.dawn.service.mapper;

import com.rivulet.dawn.api.model.archive.PostDataModel;
import com.rivulet.dawn.api.request.archive.PostDataSearchRequest;
import com.rivulet.dawn.api.response.archive.PostDataSearchResponse;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PostDataMapper {
    int deleteByPrimaryKey(Long id);

    int insert(PostDataModel record);

    int insertSelective(PostDataModel record);

    PostDataModel selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PostDataModel record);

    int updateByPrimaryKey(PostDataModel record);

    Long total(PostDataSearchRequest request);

    List<PostDataSearchResponse> search(PostDataSearchRequest request);
}